import React, { memo } from 'react';

import styles from './style.less'

const ChartWrapper = memo(({ title, settingWrapper, children, ...otherProps }) => (
    <div className={styles.chartMain} {...otherProps}>
        <div className={styles.chartHeader}>
            <div className={styles.title}>{title}</div>
            <div className={styles.orgRight}>
                {settingWrapper}
            </div>
        </div>
        {children}
    </div>
    ))

export default ChartWrapper
